package com.tnf.bc.bground.dao;

import com.tnf.bc.bground.certificate.pojo.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserDao {
    List<String> selectPerms(@Param("id") Long id);

    SysUser selectByUserName(@Param("userName") String userName);

    void save(SysUser user);

    void saveUserRoleRelation(@Param("id") Long id, @Param("roleId") Long roleId);
}
